package org.chen.springbootrabbitmqdemo.msg;

import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @Auther: Mr.chen
 * @Date: 2019/9/12 22:41
 * @Description:
 */
@Slf4j
@Component
@RabbitListener(queues = "hello")
public class ReceiverMsg {

//    @RabbitHandler
//    public void process(String msg) {
//        log.info("Receiver: {}", msg);
//    }

}
